<!--recommended_items-->
<?php if(count($aShops)>0) { ?>
<?php $aItemGroup = array_chunk($aShops, 6); ?>
<div class="recommended_items">
	<h2 class="title text-center">&nbsp;</h2>
	<div id="shop-item-carousel" class="carousel slide" data-ride="carousel">
		<div class="carousel-inner">
			<?php foreach($aItemGroup as $index=>$ah){ ?>
			<div class="item <?php echo $index==0?'active':''; ?>">
				<?php foreach($ah as $shop){ ?>
				<div class="col-sm-2">
					<div class="product-image-wrapper">
						<div class="single-products">
							<div class="productinfo text-center">
								<?php
								$image_src = "";
								if($shop->banner!=null && image_exist('public/'.$shop->image_folder.'/'.SHOP_BANNER_IMAGE_URL.$shop->banner)){
									$img_url = banner_upload($shop->banner, $shop->image_folder);
								} else {
									$img_url = "http://placehold.it/". urlencode(BANNER_THUMB_W.'x'.BANNER_THUMB_H.'&text=Logo');
								}
								?>
								<a href="<?php echo shop_url($shop->slug); ?>" title="<?php echo $shop->title; ?>">
									<img src="<?php echo $img_url; ?>" alt="<?php echo $shop->title; ?>" />
								</a>
								<h5 class="text-upper color-primary"><?php echo $shop->title; ?></h5>
							</div>
						</div>
					</div>
				</div>
				<?php } ?>
			</div>
			<?php } ?>
		</div>
		<a class="left recommended-item-control" href="#shop-item-carousel" data-slide="prev">
			<i class="fa fa-angle-left"></i>
		</a>
		<a class="right recommended-item-control" href="#shop-item-carousel" data-slide="next">
			<i class="fa fa-angle-right"></i>
		</a>
	</div>
</div>
<?php } ?>
<!--/recommended_items-->